package com.base.pig.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.base.pig.annotation.DictReplace;

import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @ProjectName intelligent-city
 * @Package com.pig4cloud.pig.lab.dto
 * @ClassName ScDeviceAlarmListDto
 * @Description TODO
 * @Company Lab
 * @Author songhw
 * @Date 2020/7/1 0001 10:16
 * @UpdateUser
 * @UpdateDate
 * @UpdateRemark
 * @Version 1.0.0
 */
@Data
public class ScDeviceAlarmListDto implements Serializable {

    /**
     * 设备编号
     */
    private String sn;
    /**
     * 设备类型编号
     */
    private String deviceType;

    /**
     * @Title
     * @Description 设备类型名称
     * @return
     * @author wangw
     * @date
     */
    @TableField(exist = false)
    @DictReplace(valueField="deviceType",type = "device_type")
    private String  deviceTypeName;
    /**
     * 位置
     */
    private String location;
    /**
     * 经度
     */
    private double longitude;
    /**
     * 纬度
     */
    private double latitude;
    /**
     * 报警时间
     */
    private Timestamp alarmTime;
    /**
     * 报警消息
     */
    private String alarmMsg;
    /**
     * @Title  厂商编号
     * @author wangw
     * @date 2020/7/17 0017 13:48
    */
    private String manufacturerNumber;
}
